//
//  JGAccountManagementController.m
//  JGRider
//
//  Created by 单启志 on 2018/1/30.
//  Copyright © 2018年 ffq. All rights reserved.
//  账号管理

#import "JGAccountManagementController.h"
#import "JGAccountManagementContentView.h"
#import "JGWithdrawalProgressController.h"//提现进度
#import "JGMyAccountController.h" //账单
#import "JGApplyWithdrawalsController.h"//申请提现
#import "JGSettlementRulesController.h" //结算规则
@interface JGAccountManagementController ()<JGAccountManagementContentViewDelegate>

@property(nonatomic,strong)JGAccountManagementContentView *contView;
@end

@implementation JGAccountManagementController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configSubViews];
}

-(void)configSubViews{
    self.title=@"账号管理";
    self.lmj_navgationBar.hidden=YES;
    [self.view addSubview:self.contView];
}

#pragma mark - contentView delegate
//返回
-(void)contentViewBackEvent{
    JGpopViewController;
}
//结算规则
-(void)contentViewSettlementRulesEvent{
    JGSettlementRulesController *vc=[[JGSettlementRulesController alloc]init];
    JGpushViewController(vc);
}
//提现进度
-(void)contentViewProgressEvent{
    JGWithdrawalProgressController *vc=[[JGWithdrawalProgressController alloc]init];
    JGpushViewController(vc);
}
//账单
-(void)contentViewAccountEvent{
    JGMyAccountController *vc=[[JGMyAccountController alloc]init];
    JGpushViewController(vc);
}
//申请提现
-(void)contentViewApplyWithdrawalsEvent{
    JGApplyWithdrawalsController *vc=[[JGApplyWithdrawalsController alloc]init];
    JGpushViewController(vc);
}

#pragma mark - override
-(JGAccountManagementContentView *)contView{
    if (!_contView) {
        _contView=[[JGAccountManagementContentView alloc]initWithFrame:CGRectMake(0, 0, JGScreenW, JGScreenH)];
        _contView.delegate=self;
    }
    return _contView;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
